const typeController = require('../../controller/system/type');

exports.add = (req, res) => {
    typeController.addType(req.body, e => {
        res.status(200).json(e);
    })
}

exports.search = (req, res) => {
    typeController.searchType(e => {
        res.status(200).json(e);
    })
}

exports.edit = (req, res) => {
    typeController.editType(req.body, e => {
        res.status(200).json(e);
    })
}

exports.delete = (req, res) => {
    typeController.deleteType(req.body, e => {
        res.status(200).json(e);
    })
}